import React, {Component} from 'react'
import { Pagination } from 'antd'
import './pagination.scss'
export default class Layout extends Component {

    render() {
        const {_page, _total} = this.props
        let defaultCurrent = 1
        let total = 0
        if (_page) defaultCurrent = _page
        if (_total) total = _total
        return (
            <div className={'box'}>
                <Pagination defaultCurrent={defaultCurrent} total={total} />
            </div>
        )
    }
}
